package com.xue.mybatis.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class DataSourceInfo {

    @Value("${spring.datasource.url}")
    private  String url;
    @Value("${spring.datasource.username}")
    public  String username;
    @Value("${spring.datasource.password}")
    public  String password;
    @Value("${spring.datasource.driver-class-name}")
    public  String driverName;
}
